package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the smart_documento database table.
 * 
 */
@Entity
@Table(name="smart_documento")
@NamedQuery(name="SmartDocumento.findAll", query="SELECT s FROM SmartDocumento s")
public class SmartDocumento implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sm_scdocumento")
	private Integer smscdocumento;

	@Column(name="sm_codocumento")
	private String smcodocumento;

	@Column(name="sm_dsdocumento")
	private String smdsdocumento;		
				 					 			
	@Column(name="sm_cousuario")
	private String smcousuario;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhingreso")
	private Date smfhingreso;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhmodificacion")
	private Date smfhmodificacion;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhretiro")
	private Date smfhretiro;

	//bi-directional many-to-one association to SmartInstitucion
	@ManyToOne(optional = false, fetch = FetchType.LAZY)
	@JoinColumn(name="sm_scinstitucion", referencedColumnName="sm_scinstitucion")
	private SmartInstitucion smartInstitucion;

	public Integer getSmscdocumento() {
		return smscdocumento;
	}

	public void setSmscdocumento(Integer smscdocumento) {
		this.smscdocumento = smscdocumento;
	}

	public String getSmcodocumento() {
		return smcodocumento;
	}

	public void setSmcodocumento(String smcodocumento) {
		this.smcodocumento = smcodocumento;
	}

	public String getSmdsdocumento() {
		return smdsdocumento;
	}

	public void setSmdsdocumento(String smdsdocumento) {
		this.smdsdocumento = smdsdocumento;
	}

	public String getSmcousuario() {
		return smcousuario;
	}

	public void setSmcousuario(String smcousuario) {
		this.smcousuario = smcousuario;
	}

	public Date getSmfhingreso() {
		return smfhingreso;
	}

	public void setSmfhingreso(Date smfhingreso) {
		this.smfhingreso = smfhingreso;
	}

	public Date getSmfhmodificacion() {
		return smfhmodificacion;
	}

	public void setSmfhmodificacion(Date smfhmodificacion) {
		this.smfhmodificacion = smfhmodificacion;
	}

	public Date getSmfhretiro() {
		return smfhretiro;
	}

	public void setSmfhretiro(Date smfhretiro) {
		this.smfhretiro = smfhretiro;
	}

	public SmartInstitucion getSmartInstitucion() {
		return smartInstitucion;
	}

	public void setSmartInstitucion(SmartInstitucion smartInstitucion) {
		this.smartInstitucion = smartInstitucion;
	}
}
